package com.zzx.project.service.impl;

import com.zzx.project.dao.PracticalDao;
import com.zzx.project.entity.Practical;
import com.zzx.project.service.PracticalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PracticalServiceImpl implements PracticalService { //实用网站Service实现类

    @Autowired
    PracticalDao practicalDao;

    @Override
    public List<Practical> getAll() {
        return practicalDao.getAll();
    }

    @Override
    public int addWeb(Practical practical) {
        return practicalDao.addWeb(practical);
    }

    @Override
    public int getAllCount() {
        return practicalDao.getAllCount();
    }
}
